<template>
	<view>
		<web-view :src="webUrl" :webview-styles="webviewStyles"></web-view>
	</view>
</template>

<script>
	import config from "@/common/js/config.js";
	export default {
		data() {
			return {
				webUrl: '',
				webviewStyles: {
					progress: {
						color: '#333',
					}
				}
			}
		},
		onLoad(options) {
			if (options.url) {
				this.webUrl = config.baseUrl + options.url;
			} else {
				this.webUrl = config.baseUrl + '/public/activity/activity.html';
			}
		},
	}
</script>

<style lang="scss" scoped>

</style>
